/**
 * 
 */
package com.hector.meinewerk.client.view.common;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

import com.hector.meinewerk.client.R;
import com.hector.meinewerk.common.BaseActivity;
import com.hector.meinewerk.common.ModelEvent;

public class LoginView extends BaseActivity{
	//Context
	private Context mContext;
	private Activity mActivity;
	
	//View
	private EditText mEditEmail, mEditPassword;
	private Button mBtnLogin;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		mContext = this.getApplicationContext();
		mActivity = this;
		setContentView(R.layout.activity_login);
	}
	
	private void setupViews(){
		mEditEmail = (EditText) findViewById(R.id.edit_email);
		mEditPassword = (EditText) findViewById(R.id.edit_password);
		mBtnLogin = (Button) findViewById(R.id.btn_login);
		mBtnLogin.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				
			}
		});
	}

	/*
	 * xu ly cac su kien hoan thanh nhan tu controller
	 * 
	 * @see
	 * com.hector.meinewerk.common.BaseActivity#handleModelViewEvent(com.hector
	 * .meinewerk.common.ModelEvent)
	 */
	@Override
	public void handleModelViewEvent(ModelEvent modelEvent) {
		// TODO Auto-generated method stub
		super.handleModelViewEvent(modelEvent);
	}

	/*
	 * Xu ly cac su kien loi nhan tu controller
	 * 
	 * @see
	 * com.hector.meinewerk.common.BaseActivity#handleErrorModelViewEvent(com
	 * .hector.meinewerk.common.ModelEvent)
	 */
	@Override
	public void handleErrorModelViewEvent(ModelEvent modelEvent) {
		// TODO Auto-generated method stub
		super.handleErrorModelViewEvent(modelEvent);
	}
}
